package com.task4;

import java.sql.Connection;
import java.sql.SQLException;

public class MyThread implements Runnable {

	@Override
	public void run() {
		try {
			Connection conn = MyDataSource.dataSource.getConnection();
			if (conn != null)
				conn.close();
		} catch (SQLException e) {
			e.printStackTrace();
		}
	}
}
